<?php
class Member extends Visitor{
	protected $userName;
	protected $password;
	protected $nickName;				//昵称
	protected $sex;
	protected $birthday;
	protected $idCards;				//身份证
	protected $homeTown;				//籍贯
	protected $matritalStatus;		//婚姻状况，single or married
	protected $interest;				//兴趣爱好等
	protected $degree;				//学历，毕业院校
	protected $work;					//工作
	protected $email;					//电子邮箱
	protected $contacts;				//其他联系方式
	protected $registerTime;			//注册时间
	protected $loginTime;				//登录时间
	protected $logoutTime;				//登出时间
	private $db;

	public function __construct(){
		$this->userName="";
		$this->password="";
		$this->nickName="初来乍道";
		$this->sex="男";
		$this->birthday="1900-01-01";
		$this->idCards="";
		$this->homeTown="中国";
		$this->matritalStatus="单身";
		$this->interest="";
		$this->degree="学生";
		$this->work="无业";
		$this->email="zhangshang@yoursite.com";
		$this->contacts=array("phone"=>"1391XXXXXXXXXXXX");
		$this->loginTime=microtime();
		$this->logoutTime=$this->loginTime;
		$this->registerTime=0;
		$this->getInfo();
	}
	public function __destruct(){
	}
	public function getInfo(){
	    $mysql="select * from vshi_user where id =:id;";
		$db=new DB();
		$db->prepareSQL($mysql);
		$array=array(":id"=>1);
		$db->excuteSQL($array);
		$row=$db->fetch();
//		echo '<pre>';
//		print_r($row);
//		echo '</pre>';

	}

}